package com.lzy.elasticserch.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
@ToString
@EqualsAndHashCode
@ConfigurationProperties(prefix = "cn.lzy.elasticsearch")
public class CanalConsumerProperty {

    private List<CanalConsumerItem> canalConsumerItems;

    @Data
    @ToString
    @EqualsAndHashCode
    public static class CanalConsumerItem {
        /**
         * code
         */
        private String code;
        /**
         * canal server 配置 instance 名称
         */
        private String destination;
        /**
         * 过滤数据源l
         */
        private String subscribeFilter;
    }

}
